package com.bpzj.util.docx;

import java.io.File;
import java.io.IOException;
import java.util.Set;
import org.zwobble.mammoth.DocumentConverter;
import org.zwobble.mammoth.Result;

public class DocxToHtml {

  public static void main(String[] args) throws IOException {
    DocumentConverter converter = new DocumentConverter();
    Result<String> result = converter.convertToHtml(new File("C:\\Users\\bpzj\\Desktop\\C#开发.docx"));
    String html = result.getValue(); // The generated HTML
    System.out.println(html);
    Set<String> warnings = result.getWarnings(); // A
  }

}
